#!/bin/bash

echo '[info] begin to run training-testing data evaluation...'

workingDir=$1
if [ "$workingDir" == '' ]
then
    workingDir='/cmsdata/cflab'
fi

cd ${workingDir}
for suf in {a..j}
do
    echo "[info] processing the ${suf} round of calculation..."
    mv split/xa${suf} test/testing.csv
    cat split/xa* > train/training.csv
    jruby evaluate_precision.rb
    sleep 10
    mv test/testing.csv split/xa${suf}
done


echo '[info] begin to run training-testing data evaluation...'